import json
import jieba
import numpy as np
from gensim.models import Word2Vec
from sklearn.metrics import  classification_report
from sklearn.svm import SVC
from collections import defaultdict

LABELS = {'健康': 0, '军事': 1, '房产': 2, '社会': 3, '国际': 4, '旅游': 5, '彩票': 6, '时尚': 7, '文化': 8, '汽车': 9, '体育': 10, '家居': 11, '教育': 12, '娱乐': 13, '科技': 14, '股票': 15, '游戏': 16, '财经': 17}

def load_word2vec_model(path):
    model = Word2Vec.load(path)
    return model

